<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>查看所有动态</title>
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}

a:visited {
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

a:active {
	text-decoration: none;
}
-->
</style>

</head>

<body style="background-color:#FFFFE1">
	<div
		style="height:1024px; background:url(../img/yeaf.jpg);background-repeat: no-repeat">
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br> <span style="font-weight: bold;">${user} 好友动态</span> <br />
		<br />
		<hr color="#FAFAFA" />
		<br />
		<br />

		<s:iterator value="#request.allweibo" id="st1">

			<hr color="#FAFAFA" />
			<br />
			<br />
			<table width="80%" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td style="color:#808080" style="font-family: 楷体; font-size: large">发表用户</td>
					<td style="color:#808080" style="font-family: 楷体;font-size: large">发表内容</td>
					<td style="color:#808080" style="font-family: 楷体;font-size: large">发表时间</td>

				</tr>

				<tr>
					<td width="20%" style="font-family: 楷体"><s:property
							value="#st1.username" /></td>
					<td width="60%" style="font-family: 楷体"><s:property
							value="#st1.neirong" /></td>
					<td width="20%" style="font-family: 楷体"><s:date name="#st1.time"
							format="yyyy-MM-dd HH:mm:ss" /></td>
					
				</tr>
				
				


			</table>
			<br>
			<table width="80%" cellspacing="0" cellpadding="0" align="center">
				<center>
					<form action="commentaction?wbname=${ username }&me=${user}&wbid=${idweibo}" method="post">
						<s:textarea name="comment" rows="5" cols="130"></s:textarea>
						<input type="hidden" name="comname" value="${ user }">
						<s:submit value="评论" />
					</form>
				</center>
			</table>
	
				<s:iterator value="#request.commentlist" id="st2">
					<s:if test="#st1.idweibo == #st2.idpwb">
					
						<table width="80%" cellspacing="0" cellpadding="0" align="center">
							<tr>
								<td style="font-family: 楷体;font-size: large">评论者</td>
								<td style="font-family: 楷体;font-size: large">评论内容</td>
								<td style="font-family: 楷体;font-size: large; width: 121px">评论时间</td>
							</tr>
							<tr>
								<td width="20%" style="font-family: 楷体"><input name=""
									type="hidden" value="<s:property value="#st2.username" />"
									id="username" /> <s:property value="#st2.comname" /></td>
								<td width="60%" style="font-family: 楷体"><s:property
										value="#st2.comment" /></td>
								<td width="20%" style="font-family: 楷体"><s:property
										value="#st2.commenttime" /></td>
							</tr>
						</table>
					</s:if>
					
				</s:iterator>
		
		</s:iterator>


	</div>
	<a href="myindexaction?me=${ user }" class="linka"><img
		src="../img/Home.png">返回首页</a>
</body>
</html>
